package com.kedacom.freedomLabel.viewmodel;


import com.kedacom.freedomLabel.base.BaseViewModel;

public class LabelViewerViewModel extends BaseViewModel {
    // A,9,204,7,1,1,0,0,T,装箱数量：,D,id4,20,0,8,T,PCS
    // 18 39 -1
    public void readByte(int checkChar, String line) {
//        CCLog.info(TAG, "判断标签起始符 " + line);
        int beginIndex = 0;
        int index;
        do {
            index = line.indexOf(checkChar, beginIndex);
//            CCLog.info(TAG, "T index = " + index);
            if (index != -1 && beginIndex > 0) {
                String substring = line.substring(beginIndex, index);
//                CCLog.info(TAG, "需要处理的T 字串 " + substring);
            }
            beginIndex = index + 1;
        } while (index != -1);
    }
}
